Skip to content

BDMS 55: group coverage & other updates#98

Merged
jirhiker merged 15 commits into
pre-productionfrom
jab-api-coverage-group
Aug 25, 2025
Merged

BDMS 55: group coverage & other updates#98
jirhiker merged 15 commits into
pre-productionfrom
jab-api-coverage-group

Conversation

@jacob-a-brown

@jacob-a-brown jacob-a-brown commented Aug 22, 2025

Copy link
Copy Markdown
Contributor

Why

This PR addresses the following problem / context:

  • The group router should be fully covered with GET, GET by ID, POST, PATCH, and DELETE endpoints
  • tests impacted by fixtures needed to be updated to use those fixtures
  • proper authentication and permissions need to be vetted at endpoints

How

Implementation summary - the following was changed / added / removed:

  • Added DELETE /group/{group_id} endpoint
  • Added check to ValidateGroup to ensure the project_area WKT is a MULTIPOLYGON
  • Updated tests to use fixtures
  • Added authentication to group, sensor, sample, and location routers
  • Cleaned up sensor, sample, and location routers to use session_dependency per standard that was established after those routers were established

Notes

Any special considerations, workarounds, or follow-up work to note?

@jacob-a-brown jacob-a-brown requested review from chasetmartin, jirhiker and ksmuczynski and removed request for chasetmartin, jirhiker and ksmuczynski August 22, 2025 23:05
@jirhiker

Copy link
Copy Markdown
Member

can we avoid sequential merges in the future. Its hard to do the review because its a mix of changes from this PR and PR #97.

@codecov-commenter

codecov-commenter commented Aug 25, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
api/group.py 100.00% <100.00%> (+4.34%) ⬆️
api/location.py 92.50% <100.00%> (-0.36%) ⬇️
api/sample.py 100.00% <100.00%> (ø)
api/sensor.py 78.18% <100.00%> (ø)
schemas/group.py 100.00% <100.00%> (+25.00%) ⬆️
tests/conftest.py 100.00% <100.00%> (ø)
tests/test_contact.py 100.00% <ø> (ø)
tests/test_group.py 96.93% <100.00%> (+5.27%) ⬆️
tests/test_location.py 100.00% <100.00%> (ø)
tests/test_observation.py 96.69% <ø> (-0.08%) ⬇️
... and 2 more

... and 1 file with indirect coverage changes

@jirhiker jirhiker merged commit 5fdbd93 into pre-production Aug 25, 2025
3 checks passed
@jirhiker jirhiker deleted the jab-api-coverage-group branch December 3, 2025 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants